package com.dixon.worddayday.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class ReviewReq extends BaseReq{
    @NotNull(message = "记忆id不能为空")
    private Integer progressId;
    @NotBlank(message = "复习单词不能为空")
    @Pattern(regexp = "^[a-zA-Z]+$", message = "Word should only contain English letters")
    private String reviewWord;
}
